package com.slz3.business.module.systemManagement.sysRolePermissions.service;

import com.slz3.business.module.systemManagement.sysRolePermissions.domain.SysRolePermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.data.domain.Page;
import org.springframework.util.MultiValueMap;

import java.util.List;
import java.util.Optional;
import java.util.UUID;
import java.util.stream.Stream;

/**
 * 非事务型 service
 */
public interface SysRolePermissionsService {

    SysRolePermissions save(SysRolePermissions sysRolePermissions);

    Page<SysRolePermissions> page(MultiValueMap<String,String> queryParams);

    SysRolePermissions modify(SysRolePermissions sysRolePermissions);

    Optional<SysRolePermissions> single(UUID uuid);

    List<SysRolePermissions> findAllByUuids(Iterable<UUID> uuids);

    List<SysRolePermissions> delete(List<SysRolePermissions> sysRolePermissionsList);

}
